/**
 * Created by Maibenben on 2017/5/15.
 */
$(function () {
    //跳转到本页之后读取cookie中是否有mid和token
    checkCookie();
    var mid = $.cookie("mid");
    var token = $.cookie("token");
    var important = "&mid=" + mid + "&token=" + token;
    var m_id = getQueryString('m_id');
    var vid = getQueryString('vid');
    var memberName = getQueryString('name');
    //显示接到的图片
    $.get(zhuyuanURL + "?m_id=" + m_id + "&vid=" + vid + important, function (res) {
        $(".load").hide();
        $("#header>p").text(memberName + "住院详情");
        if (!res) {
            $(".list").html("暂无住院详情").css({lineHeight: "100px", textAlign: "center", fontSize: "0.8rem"});
        } else {
            $("#slider").html(template("picTem", res));
        }
    });
});